<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ page contentType="text/html; charset=utf-8" language="java"
	import="java.sql.*" errorPage=""%>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- TemplateBeginEditable name="doctitle" -->
<title>Modifier un Theme</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
<style type="text/css">
<!--
-->
</style>
<link href="<%=request.getContextPath()%>/css/css_style.css"
	rel="stylesheet" type="text/css">
</head>

<body>
	<div class="container">
		<div class="header"></div>
		<div class="upmenu">
			<div style="text-align: left; float: left; margin-left: 10px;">
				Bienvenue :
				<s:property value="#session.nom" />
				<s:property value="#session.prenom" />
			</div>
			<div style="text-align: right; float: right; margin-right: 10px;">
				<a href="<%=request.getContextPath()%>/users/logout.action">Se deconnecter</a>
			</div>
		</div>
		<div class="leftmenu">
				<ul id="menu-accordeon">
   <li><a href="<%=request.getContextPath()%>/themes/ListeThemes.action">Liste des thémes</a>
   
   </li>
					<ul id="menu-accordeon">
   <li><a href="#">Réfenretiel des emplacements</a>
      <ul>
         <li><a href="<%=request.getContextPath()%>/regions/ListeRegions.action">Gestion des régions</a></li>
         <li><a href="<%=request.getContextPath()%>/provinces/ListeProvinces.action">Gestion des provinces</a></li>
         <li><a href="<%=request.getContextPath()%>/communes/ListeCommunes.action">Gestion des communes</a></li>
         <li><a href="<%=request.getContextPath()%>/pois/ListePoi.action">Gestion des pois</a></li>
<!--          <li><a href="#">Gestion des POIs</a></li> -->
      </ul>
   </li>
		</div>
		<div class="content">
			<div class="content-header">Modifier la Province</div>
			<div class="content-core">
				<form action="<%=request.getContextPath()%>/pois/ModifierPoi.action">
				<table>
					
					<tr>
						<td><s:label value="nom :"></s:label></td>
						<td><s:textfield name="nom" value="%{#parameters['nom']}"></s:textfield></td>
					</tr>
					<tr>
						<td><s:label value="chef lieu :"></s:label></td>
						<td><s:textfield name="description" value="%{#parameters['description']}"></s:textfield></td>
					</tr>
					<tr>
						<td><s:label value="population :"></s:label></td>
						<td><s:textfield name="population" value="%{#parameters['population']}"></s:textfield></td>
					</tr>
						<tr>
						<td><label>Emplacement :</label></td>
						<td>
						<c:choose>
						<c:when test="${not empty listeEmplacments}">
							<s:select  id="emplacement" name="idCommune" headerKey="aucun" 
							listKey="identifiant" listValue="nom"
									headerValue="Choisissez l'emplacement" list="listeEmplacments" 
									/> 
						</c:when>
						<c:otherwise>

									Veuillez choisir le niveau de base.
						</c:otherwise>
					</c:choose>
							</td> <br>
						
					</tr>
					<tr>
						<td><s:submit value="Valider"></s:submit></td>
						<td></td>
					</tr>
						<s:textfield cssStyle="display:none;" name="identifiant" value="%{#parameters['identifiant']}"></s:textfield>
					
				</table>
				</form>
				
				
				
<s:if test="hasActionErrors()">
						<s:actionerror />
				</s:if>
			</div>
		</div>
	</div>
</body>
</html>